<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>金币录入管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
		
		});		
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<!--  <ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/goldinput/goldcoin/">金币录入审核</a></li>
		<shiro:hasPermission name="goldinput:goldcoin:edit"><li><a href="${ctx}/goldinput/goldcoin/form">金币录入添加</a></li></shiro:hasPermission>
	</ul>-->
	<sys:message content="${message}"/>
	<form:form id="searchForm" modelAttribute="goldCoinForUserVo" action="${ctx}/goldinput/goldcoin/goldcoinforusers?goldcoinid=${goldCoinForUserVo.goldcoinpoolid}" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
		<ul class="ul-form">
			<li><label>手机号码</label>
				<form:input path="mobile" value="${goldCoinForUserVo.mobile}" htmlEscape="false" maxlength="80" class="input-medium"/>
			</li>
	
			<li><label>用户ID</label>
				<form:input path="userid"  value="${goldCoinForUserVo.userid}" htmlEscape="false" maxlength="80" class="input-medium"/>
			   
			</li>
	
			<li><label>用户领取时间</label>
				<input name="goldcoincollectionstart" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
					value="<fmt:formatDate value="${goldCoinForUserVo.goldcoincollectionstart}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
			至
				<input name="goldcoincollectionend" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate required"
					value="<fmt:formatDate value="${goldCoinForUserVo.goldcoincollectionend}" pattern="yyyy-MM-dd HH:mm:ss"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true});"/>
			</li>
			
			
			<li><label>每页</label>
			<select id="pageSize" name="pageSize" class="input-small">
				<option value="20"    <c:choose><c:when test="${page.pageSize=='20'}">selected=true</c:when></c:choose>>20</option>
				<option value="100"   <c:choose><c:when test="${page.pageSize=='100'}">selected=true</c:when></c:choose>>100</option>
				<option value="500"   <c:choose><c:when test="${page.pageSize=='500'}">selected=true</c:when></c:choose>>500</option>
				<option value="1000"  <c:choose><c:when test="${page.pageSize=='1000'}">selected=true</c:when></c:choose>>1000</option>
			</select>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th	class="sort-column goldcoinname">序号</th> 
				<th	class="sort-column goldcoinname">用户姓名</th>
				<th	class="sort-column goldcoinactivity">用户手机号码</th>
				<th	class="sort-column goldcoindistributiontotalnumber">用户ID</th>
				<th	class="sort-column goldcoindistributiontotalnumber">金币所属活动</th>
				<th	class="sort-column goldcoindistributiontotalnumber">金币个数</th>
				<th	class="sort-column goldcoinvaliditystyle">有效时间</th>
				<th	class="sort-column goldcoinvaliditystyle">用户领取时间</th>
				<th	class="sort-column goldcoincollectionstart">金币领取开始时间</th>
				<th	class="sort-column goldcoincollectionend">金币领取结束时间</th>	
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="goldCoinForUserVo" varStatus="i" >			
			<tr>
			 	<td>
			 	${i.index+1}	 	
				</td> 
				<td>
				${goldCoinForUserVo.userName }

				</td>

				<td>
				${goldCoinForUserVo.mobile}

				</td>
				<td>
					${goldCoinForUserVo.userid}
				</td>
				<td>
					${goldCoinForUserVo.activityname}
				</td>
				<td>
					${goldCoinForUserVo.goldnumber}
				</td>
				

		       <td>
				<c:if
				  test="${'01' eq goldCoinForUserVo.goldcoinvaliditystyle}"><fmt:formatDate value="${goldCoinForUserVo.goldcoinvaliditystart}" pattern="yyyy-MM-dd HH:mm:ss"/> 至      <fmt:formatDate value="${goldCoinForUserVo.goldcoinvalidityend}" pattern="yyyy-MM-dd HH:mm:ss"/> </c:if>	
			<c:if
				  test="${'02' eq goldCoinForUserVo.goldcoinvaliditystyle}"><fmt:formatDate value="${goldCoinForUserVo.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/> 至      <fmt:formatDate value="${goldCoinForUserVo.goldcoinvalidityend}" pattern="yyyy-MM-dd HH:mm:ss"/> </c:if>	
			<c:if
				  test="${'03' eq goldCoinForUserVo.goldcoinvaliditystyle}">
				  <fmt:formatDate value="${goldCoinForUserVo.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/> 至   
				<fmt:formatDate value="${goldCoinForUserVo.goldcoininvalidity}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</c:if>
				</td>
	
				<td>
					<fmt:formatDate value="${goldCoinForUserVo.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
		         <td>
					<fmt:formatDate value="${goldCoinForUserVo.goldcoincollectionstart}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<fmt:formatDate value="${goldCoinForUserVo.goldcoincollectionend}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>

			
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>